package jrain.fw.core.service;

/**
 * <pre>
 * 作者：3244924214@qq.com 
 * 描述： 服务配置
 * </pre>
 */
public enum ServiceCfg {

	// 日志类型
	logType("fw.log.type", "sl4j"),
	// 测试
	test("test", false),
	// 服务扫描
	serviceScan("fw.service.scan.pkgs", "jrain"),
	// 容器启动类
	serviceCtxClass("fw.service.ctx.class", ""),
	// 服务扫描
	businessScan("fw.business.scan.pkgs", "jrain"),
	// 列格式化扫描
	daoColumnFormatScan("fw.dao.column.format.scan.pkgs", "jrain");

	// -----------------------------------------------------------------------

	// -----------------------------------------------------------------------

	private String name;
	private String value;
	private long longValue;
	private int intValue;
	private boolean boolValue;

	private ServiceCfg(String name, String value) {
		this.name = name;
		this.value = value;
	}

	private ServiceCfg(String name, long longValue) {
		this.name = name;
		this.value = String.valueOf(longValue);
		this.longValue = longValue;
	}

	private ServiceCfg(String name, int intValue) {
		this.name = name;
		this.value = String.valueOf(intValue);
		this.intValue = intValue;
	}

	private ServiceCfg(String name, boolean boolValue) {
		this.name = name;
		this.value = String.valueOf(boolValue);
		this.boolValue = boolValue;
	}

	public String getName() {
		return name;
	}

	public String getValue() {
		return value;
	}

	public int getIntValue() {
		return intValue;
	}

	public long getLongValue() {
		return longValue;
	}

	public boolean getBooleanValue() {
		return boolValue;
	}
}
